{% extends "pcadmin/pcadmin_base.html" %}
{% block globalconteiner %}


<table class="table_layout">
<tr>
<td width="50%">
<h3>Список заданий:</h3>
    <table>
    {% for task in task_list %}
      <tr>
        <td><a href="{% url create_task_queue task.id %}">{{ task.code }} &nbsp; ( {{ task.title }} )</a></td>
      </tr>
    {% empty %}
        <tr><td>Список заданий пуст!</td></tr>
    {% endfor %}
    </table>

</td>
<td width="50%">
<h3>Очередь заданий:</h3>
  <div id="task-view">
    
    <table  class="table_layout">
    
    {% for item in task_queue %}
    <tr>
      <td>{{ item.start|date:"d.m.Y - H:i:s" }}</td>
      <td><a href="{% url task_queue_item_details item.id %}">{{ item.task }}</a></td>
     
      <td>{{ item.agent }}</td>
      <td>{{ item.acknowledge }}</td>
      <td>{{ item.done }}</td>
    
    </tr>
    {% endfor %}
    </table>
  
  </div>
</td>
</tr>
</table>


{% endblock %}